<?php	
	// Interface function	
	function oh_module_tinybox($tokens) {
		global $oh_object_tinybox;
		return $oh_object_tinybox;
	} 

	// Option file required
	//require_once($oh['path']."/modules/mysql/ezsql/shared/ez_sql_core.php");
	//require_once($oh['path']."/modules/mysql/ezsql/mysql/ez_sql_mysql.php");
	
	// Main class of module
	class oh_class_tinybox {	
		function oh_class_tinybox() {
		}
		function style() {
			return
				 '<style type="text/css">'."\n"
				.'#tinybox {position:absolute; display:none; padding:10px; background:#fff url(images/preload.gif) no-repeat 50% 50%; border:10px solid #e3e3e3; z-index:2000}'."\n"
				.'#tinymask {position:absolute; display:none; top:0; left:0; height:100%; width:100%; background:#000; z-index:1500}'."\n"
				.'#tinycontent {background:#fff}'."\n"
			 	.'</style>'."\n";
		}
		function script() {
			return 
				 '<script type="text/javascript" src="oh.framework/modules/tinybox/js/tinybox.js"></script>'."\n"
				.'<script type="text/javascript" src="oh.framework/modules/tinybox/js/tinybox.interface.js"></script>'."\n";
		}
		function head() {
			return $this->style().$this->script();
		}
	}
	
	// Main object of module
	global $oh_object_tinybox;
	$oh_object_tinybox = new oh_class_tinybox();
?>
